/* 全局样式 */
:root {
  --primary-color: #8a2be2;
  --secondary-color: #4b0082;
  --accent-color: #ff7f50;
  --bg-color: #0c0c14;
  --text-color: #f5f5f5;
  --success-color: #00e676;
  --error-color: #ff3d00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Orbitron', sans-serif;
  overflow: hidden;
  transition: background-color 0.5s ease;
}

/* 根据游戏状态改变背景 */
body.playing {
  background-color: #070711;
}

/* 主应用容器 */
.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 游戏容器 */
.game-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 游戏开始器样式 */
.game-starter {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 40px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-starter:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.game-starter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.game-starter.loading {
  animation: pulse 1.5s infinite;
}

.game-starter.playing {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(0.8);
}

.game-starter.playing:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(0.85);
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
